package com.eddie.auction.exception;

public enum BizCodeEnum {
    /**
     * 异常枚举
     */
    UNKNOWN_EXCEPTION(10000, "系统未知异常"),
    VALID_EXCEPTION(10001, "参数格式校验失败"),
    TO_MANY_REQUEST(10003, "请求流量过大"),
    SMS_CODE_EXCEPTION(10002, "操作过于频繁，请稍后再试"),
    USER_EXIST_EXCEPTION(15001, "用户存在"),
    PHONE_EXIST_EXCEPTION(15002, "手机号存在"),
    LOGIN_PASSWORD_INVAILD_EXCEPTION(15003, "账号或密码错误"),
    LOGIN_TOKEN_TIMEOUT_EXCEPTION(15004, "token不存在或已过期"),
    LOGIN_SMS_TIMEOUT_EXCEPTION(15005, "验证码已失效"),
    PASSWORD_NOT_SET_EXCEPTION(15506, "账号没有设置密码,请使用短信验证码登陆后设置"),
    ACCOUNT_UNREGISTERED_EXCEPTION(15507, "账号未注册,请使用短信验证码进行登陆注册"),
    LOGIN_SMS_VERIFY_EXCEPTION(15008, "验证码输入错误"),
    SET_EXCEED_THE_LIMIT_EXCEPTION(15009,"修改次数已达上限");

    private int code;
    private String msg;

    BizCodeEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
